<template>
    <div id="todoHeader">
        <van-cell title="待办事项" style="font-size: 24px;font-weight: bold;color: white; background-color: transparent;" />
        <van-cell :title="time+','+dayOfweek" style="color: white; background-color: transparent;"/>
    </div>
</template>
<style scoped>
    #todoHeader{
        padding-left:4%;
        padding-top: 50px;
        width: 90%;
        height: 12%;
    }
</style>

<script setup>
import { ref,onMounted } from 'vue'
const activeNames = ref(['1']);

const date = new Date();
const weekdays = ['星期一','星期二','星期三','星期四','星期五','星期六','星期天']
const dayOfweek = weekdays[date.getDay()]

const yy = new Date().getFullYear()
const mm = new Date().getMonth() + 1
const dd = new Date().getDate()
const time = yy + '/' + mm + '/' + dd
</script>